package com.ck567.nacostest.config

import org.springdoc.core.GroupedOpenApi
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration


@Configuration
class OpenAPIConfig {
    @Bean
    fun restApi(): GroupedOpenApi {
        return GroupedOpenApi.builder()
            .group("rest-api")
            .pathsToMatch("/rest/**")
            .build()
    }

    @Bean
    fun helloApi(): GroupedOpenApi {
        return GroupedOpenApi.builder()
            .group("person")
            .pathsToMatch("/persons/**")
            .build()
    }
}